package com.wgts.wgts.mvp.model.imp;

import com.wgts.wgts.mvp.model.IMessageActivityModel;
import com.wgts.wgts.netmodle.HttpResultSubscriber;
import com.wgts.wgts.netmodle.NetService;
import com.wgts.wgts.netmodle.resp.CurrentEntity;
import com.wgts.wgts.netmodle.resp.MessageListEntity;
import com.wgts.wgts.netmodle.resp.UnreadMessageEntity;

import java.util.List;

/*
 *
 *
 *   data:2018/10/2215:16
 *
 */public class MessageActivityModel implements IMessageActivityModel {
     private NetService netService;

    public MessageActivityModel(NetService netService) {
        this.netService = netService;
    }

    @Override
    public void unreadMessage(String typeCodes, HttpResultSubscriber<List<UnreadMessageEntity>> subscriber) {
        netService.unreadMessage(typeCodes, subscriber);
    }

    @Override
    public void clearMessage(String typeCodes, HttpResultSubscriber<CurrentEntity> subscriber) {
        netService.clearMessage(typeCodes, subscriber);
    }

    @Override
    public void initList(Integer pageIndex, Integer pageSize, HttpResultSubscriber<List<MessageListEntity>> subscriber) {
        netService.messageList(pageIndex, pageSize, subscriber);
    }
}
